package topo.action;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.JList;
import topo.MainFrame;
import topo.dialog.AutoDiscoverByIPRoamingDialog;
import topo.utils.DialogTools;

public class AutoDiscoverByIPRoamingAction extends AbstractAction {
    public AutoDiscoverByIPRoamingAction() {
        super("漫游搜索设备");
    }

    public void actionPerformed(ActionEvent e) {
        MainFrame.sourceCodeList.setSelectedValue(getValue("Name"), true);

        AutoDiscoverByIPRoamingDialog dialog = new AutoDiscoverByIPRoamingDialog(MainFrame.frame);
        DialogTools.dialogPack(MainFrame.frame, dialog);
    }
}